# -*- coding: utf-8 -*-
d1={'programaçao 1' :15,
    'programaçao 2': 13,
    'matematica': 12,
    'linguagens programaçao':17}
d1['algebra']=13
    
media= 0.0
c= 0
for valor in d1.itervalues():
    media+= valor
    c+= 1
    media/=c
    
print "media= ", media


for chave, valor in d1.iteritems():
    print chave,valor
